﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class SliderInitialization : MonoBehaviour {

    public GameObject hider = null;

	// Use this for initialization
    void Start()
    {


        if (hider.transform.eulerAngles.x != 0)
            GetComponent<Slider>().value = hider.transform.eulerAngles.x;
        else if (hider.transform.eulerAngles.y != 0)
            GetComponent<Slider>().value = hider.transform.eulerAngles.y;
        else
            GetComponent<Slider>().value = hider.transform.eulerAngles.z;
    }

    // Update is called once per frame
    void Update()
    {
	
	}
}
